package com.inno.oss.api;

import com.inno.oss.entity.FileUploadDTO;
import com.inno.oss.response.CommonReturnType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(name = "zey-inno-oss")
public interface OssFeignService {

    @PostMapping(value = "/oss/upload",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    CommonReturnType<String> upload(@RequestPart("file") MultipartFile file);
}
